import { getBlogPosts } from "./data";
import './styles.css'
import Roy from './assets/RoyMustang.png'
import './test/date/printDate'

const blogs = getBlogPosts()

const ul = document.createElement("ul")
blogs.forEach(blog => {
    const li = document.createElement("li")
    li.innerHTML = blog
    ul.appendChild(li)
})
document.body.appendChild(ul)

const image = document.createElement("img")
image.src = Roy
document.body.prepend(image)

const h1 = document.createElement("h1")
h1.innerHTML = "Roy Mustang"
document.body.prepend(h1)